package Work0516;

/**
 * 声呐扫描测试类
 * 
 * @author Y
 *
 */
public class ScanningTest {

	public static void main(String[] args) {
		Sonar test = new Sonar("高级扫描仪");
		Swimming a = new Fish("金龙鱼");
		test.scanning(a);
		System.out.println(">>>>>>>>>>>>>>>>>");
		Swimming b = new Submarine("蛟龙一号");
		test.scanning(b);

	}

}
